package com.ffcs.cn.action.desktopcontrol.dialogaddfolder;

import com.supermap.desktop.controls.dialog.DialogAddFolder;
import com.supermap.desktop.controls.dialog.FileType;
import com.supermap.desktop.core.Interface.IBaseItem;
import com.supermap.desktop.core.implement.CtrlAction;

/**
 * 添加文件夹面板
 *
  */
public class CtrlActionDialogAddFolder extends CtrlAction {
	public CtrlActionDialogAddFolder(IBaseItem caller) {
		super(caller);
	}

	@Override
	public void run() {
		FileType[] fileTypes = new FileType[]{
				new FileType("JPG文件(*.jpg, *.jpeg)", new String[]{"jpg", "jpeg"}),
				new FileType("PNG文件(*.png)", new String[]{"png"})
		};
		DialogAddFolder addFolder = new DialogAddFolder(fileTypes);
		addFolder.showDialog();
	}
}
